require "singleton"

class RatingScale
  include Singleton
  
  def initialize
    @rating_scale_element_by_rating_value ={ 
      -100 => RatingScaleElement.new("Negative",-100),
      -50  => RatingScaleElement.new("Weakly Negative",-50), 
      0    => RatingScaleElement.new("Neutral",0),
      50   => RatingScaleElement.new("Weakly Positive",50), 
      100  => RatingScaleElement.new("Positive",100)
    }
  end
    
  def rating_scale_elements
    @rating_scale_element_by_rating_value.values
  end

  def get_rating_scale_element(rating_value)
    @rating_scale_element_by_rating_value[rating_value]
  end
end
